package org.testfire.realm.model.entities.testfire;

import javax.persistence.*;

/**
 * Created by IntelliJ IDEA.
 * User: granum
 * Date: Aug 21, 2007
 * Time: 12:20:25 AM
 */
@Entity
@Table(catalog = "testfire", name = "tag")
public class TagEntity
{
    private int id;

    private String tag;

    @Basic
    @Column(name = "tag", nullable = false)
    public String getTag()
    {
        return tag;
    }

    public void setTag( String tag )
    {
        this.tag = tag;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE)
    @Column(name = "id", nullable = false, length = 10)
    public int getId()
    {
        return id;
    }

    public void setId( int id )
    {
        this.id = id;
    }
}
